/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of xrkol Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.service;

import java.util.List;

import com.xrkol.sharelib.entity.ConversationItem;

/**
 * @author peng.xia
 *
 */
public interface ConversationItemService extends BaseService<ConversationItem, String>{

    /**
     * 根据会话id查询所有item
     * 
     * @param id
     * @return
     */
    List<ConversationItem> findByConversationId(String id);
    
    /**
     * 根据会话id查询部分item
     * 
     * @param id
     * @return
     */
    List<ConversationItem> findByConversationId(String id, Integer page);


    /**
     * 根据会话Id获取老师未读的消息
     * 
     * @param id
     * @return
     */
    List<ConversationItem> getUnreadItems_JS(String id);

}
